﻿using Model;
using FairyGUI;

namespace Hotfix
{
    [UIViewAttribute(UIViewType.Main)]
    public class MainView:UIView
    {
        public override string PackageName => "mainUI";
        public override string ViewName => "MainView";

        public override void Create()
        {
            GButton button = MainUI.GetChild("Start").asButton;
            button.onClick.Add(StartClick);
        }
        public override void OnEnter()
        {

        }

        private void StartClick()
        {
            GameRoot.DispatcherSystem.Run(EventType.GameEnter,null,ParamsHelper.GetObj(0));
        }
    }
}
